/*    */ package system.staros.sblock1;
/*    */ 
/*    */ import java.util.HashMap;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class DictionaryNode extends Node
/*    */ {
/*    */   private List<DictionaryEntryNode> elements;
/*    */ 
/*    */   public DictionaryNode(SourcePosition paramSourcePosition, List<DictionaryEntryNode> paramList)
/*    */   {
/* 39 */     super(paramSourcePosition);
/* 40 */     this.elements = paramList;
/*    */   }
/*    */ 
/*    */   public ZemObject eval(Interpreter paramInterpreter)
/*    */   {
/* 45 */     HashMap localHashMap = new HashMap(this.elements.size());
/* 46 */     for (DictionaryEntryNode localDictionaryEntryNode : this.elements) {
/* 47 */       DictionaryEntry localDictionaryEntry = (DictionaryEntry)localDictionaryEntryNode.eval(paramInterpreter);
/* 48 */       localHashMap.put(localDictionaryEntry.getKey(), localDictionaryEntry.getValue());
/*    */     }
/* 50 */     return new Dictionary(localHashMap);
/*    */   }
/*    */ 
/*    */   public String toString()
/*    */   {
/* 55 */     StringBuilder localStringBuilder = new StringBuilder();
/* 56 */     localStringBuilder.append("(dict ");
/* 57 */     for (DictionaryEntryNode localDictionaryEntryNode : this.elements) {
/* 58 */       localStringBuilder.append(localDictionaryEntryNode);
/*    */     }
/* 60 */     localStringBuilder.append(")");
/* 61 */     return localStringBuilder.toString();
/*    */   }
/*    */ }

/* Location:           D:\Марк\!IMPORTANT\staros\archive\version-2.260.zip
 * Qualified Name:     system.staros.sblock1.DictionaryNode
 * JD-Core Version:    0.6.1
 */